﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;

namespace MyPSDALayer
{
    [MetadataType(typeof(TechMetaData))]
    public partial class Tech
    {
        private class TechMetaData
        {
            [Required(ErrorMessage = "不能为空")]
            [Display(Name = "标题")]
            public string TechName { get; set; }
            [Required(ErrorMessage = "不能为空")]
            [Display(Name = "类型")]
            public string TypeName { get; set; }
            [Required(ErrorMessage = "不能为空")]
            [Display(Name = "内容")]
            public string Descr { get; set; }
            [Required(ErrorMessage = "不能为空")]
            [Display(Name = "封面")]
            public string CoverUrl { get; set; }
        }
    }
}
